C code for PEGetReportTitle and PESetReportTitle

Use the following code as an example of how to call the PEGetReportTitle and PESetReportTitle functions:

PEGetReportTitle

HANDLE        titleHandle;
short        titleLength;
char        *titleString;
if (!PEGetReportTitle(Job, &titleHandle, &titleLength)){
    // Handle error
}
    // Allocate buffer
titleString = (char*)malloc(titleLength);
if (!PEGetHandleString(titleHandle, titleString, titleLength)){
    // Handle error
}

PESetReportTitle

char title [] = "My Report";
if (!PESetReportTitle(Job, title)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com